import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import App from './App.vue'
import './styles/index.scss'
import router from './route'
import store from './store'
import './route/permission'
import './icons/tabler-icons.css'
import http from './utils/request'
import * as echarts from 'echarts'

import SvgIcon from '/@/components/SvgIcon/index.vue'

const app = createApp(App)
app.config.globalProperties.$axios = http
app.config.globalProperties.$echarts = echarts

app.component('SvgIcon', SvgIcon)

app.use(router)
app.use(store)
app.use(ElementPlus)
app.mount('#app')
